from apps.goods.models import GoodsVisitCount
from rest_framework import serializers

class CategoryCountSerializer(serializers.ModelSerializer):
    category = serializers.StringRelatedField(read_only=True)

    class Meta:
        model = GoodsVisitCount
        # fields = ['category','count']
        fields = '__all__'
